<?php if(count($aHighlight)>0) { ?>
<?php $aItemGroup = array_chunk($aHighlight, 4); ?>
<div class="recommended_items"><!--recommended_items-->
	<h2 class="title text-center">Sản phẩm hot</h2>
	<div id="recommended-item-carousel" class="carousel slide" data-ride="carousel">
		<div class="carousel-inner">
			<?php foreach($aItemGroup as $index=>$ah){ ?>
			<div class="item <?php echo $index==0?'active':''; ?>">
				<?php foreach($ah as $p){ ?>
				<div class="col-sm-3">
					<div class="product-image-wrapper">
						<div class="single-products">
							<div class="productinfo text-center">
								<a href="<?php echo product_url($p->slug); ?>" title="<?php echo $p->title; ?>">
									<img src="<?php echo product_upload($p->image, $p->shop_image_folder); ?>" alt="<?php echo $p->title; ?>" />
								</a>
								<h2><?php echo currency_format($p->price_new); ?></h2>
								<p class="product-title"><?php echo $p->title; ?></p>
								<a data-id="<?php echo $p->detail_id; ?>" href="#" data-href="<?php echo page_url('cart/list-push'); ?>" class="btn btn-add-to-cart btn-default add-to-cart" title="<?php echo $p->title; ?>">
									<i class="fa fa-shopping-cart"></i> Mua
								</a>
							</div>
						</div>
					</div>
				</div>
				<?php } ?>
			</div>
			<?php } ?>
		</div>
		<a class="left recommended-item-control" href="#recommended-item-carousel" data-slide="prev">
			<i class="fa fa-angle-left"></i>
		</a>
		<a class="right recommended-item-control" href="#recommended-item-carousel" data-slide="next">
			<i class="fa fa-angle-right"></i>
		</a>
	</div>
</div><!--/recommended_items-->
<?php } ?>